﻿<Page x:Class="SportComplex.Program.Pages.SignInOut"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:SportComplex.Program.Pages"
      mc:Ignorable="d" 
      d:DesignHeight="590" d:DesignWidth="850"
      Title="SignInOut">

    <Grid Background="White">

        <!--Назад в режим подключения-->
        <Button Name="backBtn"
                Content="Назад"
                VerticalAlignment="Top"
                FontSize="20"
                Margin="5" 
                Click="backBtn_Click"/>

        <!--#region ФОРМА ДЛЯ АВТОРИЗАЦИИ КЛИЕНТА -->
        <Grid Name="gridFormAuthClient"
              VerticalAlignment="Center"
              Height="300"
              Width="500"
              Visibility="Hidden">

            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
            </Grid.RowDefinitions>

            <GroupBox Header="Вход за клиента"
                      Foreground="Black"
                      FontSize="20"
                      Padding="5"
                      BorderBrush="Black"
                      Margin="10"
                      BorderThickness="3">

                <Grid Margin="10">

                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>

                    <!--Элементы в GroupBox-->
                    <StackPanel>

                        <TextBlock Text="Логин:"/>
                        <TextBox Name="clientLoginAuthTxb"
                                 Background="WhiteSmoke"
                                 Height="35"
                                 VerticalContentAlignment="Center"/>

                    </StackPanel>

                    <StackPanel Grid.Row="1">

                        <TextBlock Text="Пароль:"/>
                        <PasswordBox Name="clientPassAuthPbx"
                                     Height="35"
                                     Background="WhiteSmoke"
                                     VerticalContentAlignment="Center"/>

                    </StackPanel>

                </Grid>

            </GroupBox>

            <Button Name="authClientBtn"
                    Grid.Row="1"
                    Content="Войти"
                    FontSize="20"
                    Width="200"
                    Click="authClientBtn_Click"/>
            <Button Name="openRegClientBtn"
                    Grid.Row="2"
                    Content="Зарегистрироваться"
                    FontSize="15"
                    Width="300"
                    Margin="3"
                    Click="openRegClientBtn_Click"/>
        </Grid>
        <!--#endregion ФОРМА ДЛЯ АВТОРИЗАЦИИ КЛИЕНТА -->

        <!--#region ФОРМА ДЛЯ РЕГИСТРАЦИИ КЛИЕНТА-->
        <Grid Name="gridFormRegClient"
              VerticalAlignment="Center"
              Height="430"
              Width="500"
              Visibility="Hidden">

            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition Height="30"/>
            </Grid.RowDefinitions>

            <GroupBox Header="Регистрация клиента"
                      Foreground="Black"
                      FontSize="20"
                      Padding="5"
                      BorderBrush="Black"
                      Margin="10"
                      BorderThickness="3">

                <Grid Margin="10">

                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>

                    <!--Элементы в GroupBox-->
                    <StackPanel>

                        <TextBlock Text="ФИ (Фамилия, Имя):"/>
                        <TextBox Name="clientFNameRegTxb"
                                 Text="{Binding lfname}"
                                 Background="WhiteSmoke"
                                 Height="35"
                                 VerticalContentAlignment="Center"/>

                    </StackPanel>

                    <StackPanel Grid.Row="1">

                        <TextBlock Text="Логин:"/>
                        <TextBox Name="clientLoginRegTxb"
                                 Text="{Binding login}"
                                 Background="WhiteSmoke"
                                 Height="35"
                                 VerticalContentAlignment="Center"/>

                    </StackPanel>

                    <StackPanel Grid.Row="2">

                        <TextBlock Text="Пароль:"/>
                        <TextBox Name="clientPassRegPbx"
                                 Height="35"
                                 Text="{Binding passwd}"
                                 Background="WhiteSmoke"
                                 VerticalContentAlignment="Center"/>

                    </StackPanel>

                    <StackPanel Grid.Row="3">

                        <TextBlock Text="Email:"/>
                        <TextBox Name="clientEmailRegTxb"
                                 Text="{Binding email}"
                                 Height="35"
                                 Background="WhiteSmoke"
                                 VerticalContentAlignment="Center"/>

                    </StackPanel>

                </Grid>

            </GroupBox>

            <Button Name="regClientBtn"
                    Grid.Row="1"
                    Content="Зарегистрироваться"
                    FontSize="15"
                    Width="300"
                    Click="regClientBtn_Click"/>
        </Grid>
        <!--#endregion ФОРМА ДЛЯ РЕГИСТРАЦИИ КЛИЕНТА -->

        <!--#region ФОРМА ДЛЯ АВТОРИЗАЦИИ ТРЕНЕРА -->
        <Grid Name="gridFormAuthTrainer"
              VerticalAlignment="Center"
              Height="300"
              Width="500"
              Visibility="Hidden">

            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
            </Grid.RowDefinitions>

            <GroupBox Header="Вход за тренера"
                      Foreground="Black"
                      FontSize="20"
                      Padding="5"
                      BorderBrush="Black"
                      Margin="10"
                      BorderThickness="3">

                <Grid Margin="10">

                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>

                    <!--Элементы в GroupBox-->
                    <StackPanel>

                        <TextBlock Text="Логин:"/>
                        <TextBox Name="trainerLoginAuthTxb"
                                 Background="WhiteSmoke"
                                 Height="35"
                                 VerticalContentAlignment="Center"/>

                    </StackPanel>

                    <StackPanel Grid.Row="1">

                        <TextBlock Text="Пароль:"/>
                        <PasswordBox Name="trainerPassAuthPbx"
                                     Height="35"
                                     Background="WhiteSmoke"
                                     VerticalContentAlignment="Center"/>

                    </StackPanel>

                </Grid>

            </GroupBox>

            <Button Name="authTrainerBtn"
                    Grid.Row="1"
                    Content="Войти"
                    FontSize="20"
                    Width="200"
                    Click="authTrainerBtn_Click"/>

        </Grid>
        <!--#endregion ФОРМА ДЛЯ АВТОРИЗАЦИИ ТРЕНЕРА -->
        
        <!--#region ФОРМА ДЛЯ АВТОРИЗАЦИИ АДМИНА-->
        <Grid Name="gridFormAuthАdmin"
              VerticalAlignment="Center"
              Height="300"
              Width="500"
              Visibility="Hidden">

            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
            </Grid.RowDefinitions>

            <GroupBox Header="Вход за админа"
                      Foreground="Black"
                      FontSize="20"
                      Padding="5"
                      BorderBrush="Black"
                      Margin="10"
                      BorderThickness="3">

                <Grid Margin="10">

                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>

                    <!--Элементы в GroupBox-->
                    <StackPanel>

                        <TextBlock Text="Логин:"/>
                        <TextBox Name="adminLoginAuthTxb"
                                 Background="WhiteSmoke"
                                 Height="35"
                                 VerticalContentAlignment="Center"/>

                    </StackPanel>

                    <StackPanel Grid.Row="1">

                        <TextBlock Text="Пароль:"/>
                        <PasswordBox Name="adminPassAuthPbx"
                                     Height="35"
                                     Background="WhiteSmoke"
                                     VerticalContentAlignment="Center"/>

                    </StackPanel>

                </Grid>

            </GroupBox>

            <Button Name="authAdminBtn"
                    Grid.Row="1"
                    Content="Войти"
                    FontSize="20"
                    Width="200"
                    Click="authAdminBtn_Click"/>

        </Grid>
        <!--#endregion ФОРМА ДЛЯ АВТОРИЗАЦИИ АДМИНА -->
        
    </Grid>
</Page>
